package cn;

import cn.webrx.config.SpringConfig;
import cn.webrx.mapper.BookMapper;
import cn.webrx.mapper.DbMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = SpringConfig.class)
public class MyDemo {
    @Autowired
    private BookMapper bm;

    @Autowired
    private DbMapper dm;

    @Test
    public void t1(){
        System.out.println(bm.query());
        System.out.println(dm.ver());
    }

}
